Skip to content

home task 7#67

Open
yarickhr wants to merge 1 commit into
romabelka:masterfrom
yarickhr:Hryhoruk-home-task-7
Open

home task 7#67
yarickhr wants to merge 1 commit into
romabelka:masterfrom
yarickhr:Hryhoruk-home-task-7

Conversation

@yarickhr
Copy link
Copy Markdown

No description provided.

Comment thread src/App.js
static childContextTypes = {
user: PropTypes.string
user: PropTypes.string,
dictionary: PropTypes.object
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лучше для этого Provider завести

}

static contextTypes = {
dictionary: PropTypes.object
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тут и в других местах: лучше сделай декоратор либо компонент-обертку для локализации, чтоб не обращатся каждый раз к контексту, иначе потом тяжело будет что-либо поменять

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Спасибо

Comment thread src/reducer/articles.js
case LOAD_ALL_ARTICLES + SUCCESS:
return articles
.set('entities', arrToMap(response, ArticleRecord))
.update('entities', entities => entities.merge(arrToMap(response, ArticleRecord), entities))
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ты делаешь 2 мерджа

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants